Automattic\WooCommerce\StoreApi\Utilities\OrderController B

Total Complexity 91
Dependencies 13
Dependents 4
Total lines 750
Lines of code 454
Logical lines of code 196
Comment lines 206
Methods 21
Properties 1

Methods 21

Method Rating Maintainability Complexity Lines of code
get_failed_order_stock_error()
A
44 16 43
validate_address_fields()
A
48 12 29
validate_addresses()
A
42 9 57
validate_selected_shipping_methods()
A
50 8 30
validate_coupons()
A
43 6 52
update_line_items_from_cart()
S
50 6 30
validate_coupon_usage_limit()
S
48 5 37
update_order_from_cart()
S
50 4 29
validate_order_key()
S
68 5 6
validate_email()
S
56 3 20
sync_customer_data_with_order()
S
49 2 32
validate_coupon_email_restriction()
S
67 4 7
create_order_from_cart()
S
58 2 16
update_addresses_from_cart()
S
50 1 28
get_email_from_user_id()
S
75 2 4
get_usage_per_aliases()
S
59 1 14
validate_allowed_country()
S
79 1 3
get_coupon()
S
80 1 3
default_order_status()
S
82 1 3
validate_order_before_payment()
S
67 1 8
__construct()
S
80 1 3